//
//  JMOutLookView.m
//  VoluntaryStar
//
//  Created by ios on 15/8/21.
//  Copyright (c) 2015年 ios. All rights reserved.
//

#import "JMOutLookView.h"
#import "JMHeader.h"
#import "UIViewExt.h"

@interface JMOutLookView ()

@property (nonatomic,strong) UIImageView *backImageView;


@end
@implementation JMOutLookView
@synthesize imageView = _imageView;


-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if(self){
    
    }
    return self;
}
-(UIImageView *)backImageView{
    if(!_backImageView){
        _backImageView = [[UIImageView alloc]init];
        _backImageView.backgroundColor = [UIColor clearColor];
        _backImageView.image = [UIImage imageNamed:@"ship.bundle/main_windowImage"];
        [self addSubview:_backImageView];
    }
    return _backImageView;
}

-(UIImageView *)imageView{
    if(!_imageView){
        _imageView = [[UIImageView alloc]init];
        _imageView.backgroundColor = [UIColor clearColor];
        [self addSubview:_imageView];
    }
    return _imageView;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    self.imageView.frame = CGRectMake(self.frameWidth *0.04375, 20 *0.671875, self.frameWidth - self.frameWidth *0.04375 *2, self.frameHeight - 20 *0.671875  - 28 *0.671875);
    self.backImageView.frame = CGRectMake(0, 0, self.frameWidth, self.frameHeight);
}
/*
- (void)drawRect:(CGRect)rect {
    
}
 */

@end
